<html>

<head></head>

<body>
    <h1>hello,{{ .msg }}</h1>
    <ul>
        {{ range $key, $value := .codes }}
        <h1>
            <form action="/ok" method="POST">
                <img src="/code/{{ $value.Path }}" />
                <input name="code" />
                <input type="submit" value="确认" />
                <input name="name" value="{{$key}}" />
            </form>
        </h1>
        {{ else }}
        <li> <a href="/ocr">刷新</a></li>
        {{ end }}
    </ul>
</body>

</html>